
<style>
.brand_nav{background-color: #FFF;text-align: center;position:fixed;width:79%;z-index:9}
.brand_nav .brand_nav_left{float: left;width: 5%;height: 40px;line-height: 40px;}
.brand_nav .brand_nav_right{float: left;width: 95%;margin: 0;padding: 0;}
.brand_nav .brand_nav_right .col-sm-6{padding:0;}
.brand_nav .brand_nav_right ul li{float: left;height: 40px;line-height: 40px;}

.brand_list{margin-top: 100px;color: #272727;}
.brand_list .col-sm-12,.col-md-6{padding:0;}
.brand_list ul li{text-align:center;padding:20px;}
.brand_list img{padding:20px;}
.anchor{display: block;position: relative;top: -180px;visibility: hidden;}
.brand-name{text-overflow: ellipsis;white-space: nowrap;overflow: hidden;font-size:12px;}
</style>

<div class="brand_nav">
    <div class="brand_nav_left">#</div>
    <div class="brand_nav_right">
        <ul class="col-sm-12 col-md-12">
            <?php
                foreach($brands as $k=>$v){
                    echo '<li class="col-sm-1 col-md-1"><a href="#'.$k.'">'.$k.'</a></li>';
                }
            ?>
            <li class="col-sm-1 col-md-1">#</li>
        </ul>
</div>
<div style="clear:both;"></div>
</div>



<div class="brand_content">

    <?php
        foreach($brands as $k=>$v){
    ?>
    <div class="brand_list">
        <h1><a class="anchor" id="<?php echo $k ?>"></a><?php echo $k ?> -</h1>
        <ul class="col-sm-12 col-md-12">
            <?php
                foreach($v as $kk=>$vv){
                    if($vv->id==350){
                        continue;
                    }
            ?>
                <li class="col-sm-2 col-md-2" onclick="location.href='/listShow?tab=tab1&brandId=<?php echo $vv->id ?>&nav1=品牌&nav2=<?php echo $vv->brandName ?>'">
                    <div style="background-color:#FFF;margin:10px;">
                    <?php
                        if($vv->brandUrl==""){
                            echo '<img src="http://img.bstapp.cn/website/best/image/blank.jpg@90Q" width="100%" height="expression(this.clientWidth)" />';
                        }else{
                            echo '<img src="'.$vv->brandUrl.'" width="100%" height="expression(this.clientWidth)" />';
                        }
                    ?>
                    </div>
                    <p class="brand-name"><?php echo $vv->brandName ?></p>
                </li>
            <?php
                }
            ?>
        </ul>
        <div style="clear:both;"></div>
    </div>
    <?php
     
        }
    ?>
</div>


